package com.github.permissiondog.cancanpbackend.dao;

import com.github.permissiondog.cancanpbackend.model.Approver;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ApproverDao {
    void createTable();
    Approver getApprover(@Param("templateId") int templateId, @Param("approverId") int approverId);
    List<Approver> getApprovers(int templateId);
    List<Approver> getApproversGreaterThan(@Param("templateId") int templateId, @Param("number") int number);
    void insertApprover(Approver a);
    void updateApprover(Approver a);
    int deleteApprover(@Param("templateId") int templateId, @Param("approverId") int approverId);

}
